package cheme.ProcessEditor.Figures.Util;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.PolygonDecoration;
import org.eclipse.swt.SWT;

public class ChemePolylineDecoration extends PolygonDecoration
{
	public ChemePolylineDecoration()
	{
		this(2, 12, 6);
	}
	
	public ChemePolylineDecoration(int lineWIdth, double xScalar, double yScalar)
	{
		setLineWidth(lineWIdth);
		setScale(xScalar, yScalar);
	}

	@Override
	public void paintFigure(Graphics graphics)
	{
		graphics.pushState();

		graphics.setAntialias(SWT.ON);

		super.paintFigure(graphics);

		graphics.popState();
	}
}
